<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style type="text/css">
a em {text-decoration: underline;}
em {font-style: normal;color: #c00;}
A.fault:link {
	COLOR: #c00;
	TEXT-DECORATION: none
}

A.fault:visited {
	COLOR: #c00;
	TEXT-DECORATION: none
}

A.fault:hover {
	COLOR: #f60;
	TEXT-DECORATION: underline
}
#content_left {
	padding-left: 121px;
	padding-top: 5px;
}

#content_center {
	padding-left: 161px;
	padding-right: 151px;
}

.STYLE-1 {
	font-size: 14px;
	color: #036;
}
.STYLE-2 {
	font-size: 14px;
	COLOR: #036;
	TEXT-DECORATION: none
}
.STYLE-3 {
	COLOR: #036;
}

.STYLE-T1{
	padding-left: 151px;
}

.STYLE-A2 {font-size: 14px;}

</style>
</head>

<script type="text/javascript">
	function allFault() {
		mdiv = document.getElementById("form1");
		document.form1.method="get";
		document.form1.action = "allFaultAction.action";
		document.form1.submit();
	}
	
	function findBySymptom() {
		mdiv = document.getElementById("form1");
		document.form1.method="post";
		document.form1.action = "fingBySymptomAction.action";
		document.form1.submit();
	}
//-->

</script>
<body bgcolor="#ecf9dc">
	<span style="font-size: 12px;">故障查询》》</span>
	<s:form id="form1" name="form1">
	<table id="content_left">
		<tr>
			<td><img src="images/sousuo.jpg" width="30" height="30">
			</td>
			<td>&nbsp;<span class="STYLE-1">故障现象：</span></td>
			<td><input type="text" value='<s:property value="#request.findString"/>' name="findString">&nbsp;&nbsp;</td>
			<td><span class="STYLE-1">所属业务：</span></td>
			<td><SELECT id=sFlag name="findFlag">
					<OPTION value=0 selected>所有业务</OPTION>
					<OPTION value=1>核心网</OPTION>
					<OPTION value=2>无线侧</OPTION>
					<OPTION value=3>网管</OPTION>
					<OPTION value=4>终端</OPTION>
			</SELECT>
			</td>
			<td style="padding-left:20px;"><input type="button" onclick="findBySymptom()" value="搜索" name="findAll"></td>
			<td><input type="button" onclick="allFault()" value="全部故障" name="findAll"></td>
		</tr>
	</table>
	<input type="hidden" value='<s:property value="#request.subsystem.sname"/>' name="ssname"/>
	</s:form>
	<p class="STYLE-2" id="content_center">${request.subsystem.sname}&nbsp;${request.subsystem.describe}</p>
	<TABLE id="content_center" cellSpacing=0 cellPadding=0
		width="78%" border=0>
		<s:iterator value="#request.faults" id="fa">
			<TR>
				<td><span class="STYLE-3">故障名称：</span><a class="fault"
					href="oneFaultAction?id=<s:property value="id"/>" target="I1">
						<s:property value="fname" />
				</a>
					<p>
						<span class="STYLE-3">所属业务：</span>
						<s:property value="serve" />
					</p>
					<p>
						<span class="STYLE-3">故障描述：</span>
						<s:property value="describe" />
					</p>
					<p>
						<span class="STYLE-3">故障现象：</span>
						<s:property value="symptom" />
					</p>
					<p>
						<a class="STYLE-A2" href="page?pagename=updateFault&faultid=<s:property value="id"/>" target="I1" title="修改">修改</a> <a
							class="STYLE-A2"
							onclick="javascript:if(confirm('确定')) return true ;else return false;"
							href="deleteFaultAction?id=<s:property value="id"/>" target="I1" title="删除">删除</a>
					</p> <br>
				<br>
				</td>
			</TR>
		</s:iterator>
	</TABLE>

</body>
</html>
